<?php
class Tipos_accion_model extends CI_Model {
    public function __construct() {
        $this->load->database();
    }
    
    public function get_tipos_accion() {
        $query = $this->db->query("SELECT *
                                    FROM
                                        tipos_accion");
        return $query->result_array();
    }
    
    public function get_tipo_accion($idaccion) {
        $query = $this->db->query("SELECT *
                                    FROM
                                        tipos_accion
                                    WHERE
                                        idtipo_accion = $idaccion");
        return $query->row_array();
    }
}
?>
